import { Entity, Column, PrimaryGeneratedColumn,ManyToMany, ManyToOne, JoinColumn, OneToOne , BaseEntity, OneToMany } from 'typeorm';
import { EnumReportDeleteTag, ReportSourceEnum } from './answerReportErrors.enum';
import { EnumProfitRefundReasonType } from '../profit/profit.enum';

@Entity('answer_report_errors')
export class AnswerReportErrors extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'answer_id' })
  answer_id: number;

  @Column({ name: 'wx_user' })
  wx_user: string;

  @Column({ name: 'type' })
  type: EnumProfitRefundReasonType;

  @Column({ name: 'create_time' })
  create_time: Date;

  @Column({ name: 'check' })
  check: number;

  @Column({ name: 'check_time' })
  check_time: Date;

  @Column({ name: 'platform' })
  platform: string;

  @Column({ name: 'account' })
  account: string;

  @Column({ name: 'ic_name' })
  ic_name: string;
  
  @Column({ name: 'img' })
  img: string;
  
  @Column({ name: 'img_id' })
  img_id: string;
  
  @Column({ name: 'avatar_img' })
  avatar_img: string;
  
  @Column({ name: 'avatar_id' })
  avatar_id: string;

  @Column({ name: 'source' })
  source: ReportSourceEnum;

  @Column({ name: 'delete_tag' })
  delete_tag: EnumReportDeleteTag;

  @Column({ name: 'reset_error' })
  reset_error: number;
}
